//
//  ShellFriendViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2019/9/26.
//  Copyright © 2019年 VV. All rights reserved.
//

#import "ShellFriendViewController.h"
#import "ShellFriendView.h"
#import "ShellFriendViewModel.h"

@interface ShellFriendViewController ()

@property (nonatomic,strong) ShellFriendView *friendView;

@property (nonatomic,strong) ShellFriendViewModel *viewModel;

@end

@implementation ShellFriendViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = LZLocalizedString(@"我的好友");
    [self setupUI];
}


#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.friendView];
    [self.friendView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    showLoadingTitle(@"", nil);
    [self.viewModel getMyFriend:YES];
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellFriendViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellFriendViewModel alloc] init];
    }
    return _viewModel;
}

- (ShellFriendView *)friendView{
    if(!_friendView){
        _friendView = [[ShellFriendView alloc] initViewModel:self.viewModel];
    }
    return _friendView;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
